﻿using System;
using System.Collections.Generic;
using Pay.TO;

namespace Pay.DTO {
	/// <summary>
	/// 账单明细
	/// </summary>
	public class bill_detail_ex {
		public bill_detail_ex() {
			items = new List<bill_item>();
		}
		/// <summary>
		/// 日期
		/// </summary>
		public string date { get; set; }
		/// <summary>
		/// 合计
		/// </summary>
		public decimal total { get; set; }

		public List<bill_item> items { get; set; }
	}
	/// <summary>
	/// 账单项
	/// </summary>
	public class bill_item {
		/// <summary>
		/// 账单id:可能是订单id,可能是退单id,也可能是账单id
		/// </summary>
		public long object_id { get; set; }
		/// <summary>
		/// 账单类型
		/// </summary>
		public BillType type { get; set; }
		/// <summary>
		/// 账单名称
		/// </summary>
		public string name { get; set; }
		/// <summary>
		/// 交易金额
		/// </summary>
		public decimal ammount { get; set; }
		/// <summary>
		/// 时间
		/// </summary>
		public string time { get; set; }
		/// <summary>
		/// 状态
		/// </summary>
		public string status_name { get; set; }
	}
    /// <summary>
	/// 账单扩展
	/// </summary>
	public class bill_ex : bill_dto{
        /// <summary>
        /// 账单id
        /// </summary>
        public long bill_id { get; set; }
        /// <summary>
        /// 账户
        /// </summary>
        public string mobile { get; set; }
    }

}
